import request from '@/js/request'

export default {
  // 获取红人列表
  querySensationList: data => request({
    method: 'POST',
    url: '/index/search',
    data
  }),
  // 获取红人详情
  queryInfluencerShow: params => request({
    method: 'GET',
    url: '/influencer/show',
    params
  }),
  // 获取红人分类
  queryCateList: () => request({
    method: 'GET',
    url: '/influencer/category/show-all'
  }),
  // 获取国家列表
  queryCountryList: () => request({
    method: 'GET',
    url: '/influencer/country/show-all'
  }),
  // 用户收藏红人接口
  favoriteInfluencer: data => request({
    method: 'POST',
    url: '/user/favorite/influencer',
    data
  }),
  // 用户取消收藏红人接口
  unfavoriteInfluencer: data => request({
    method: 'POST',
    url: '/user/unfavorite/influencer',
    data
  }),
  // 红人视频列表接口
  queryVideoList: params => request({
    method: 'GET',
    url: '/influencer/video/list',
    params
  }),
  // 红人进度列表接口
  queryScheduleList: params => request({
    method: 'GET',
    url: '/frontend/user/schedule/list',
    params
  }),
  // 红人进度详情接口
  queryScheduleDetail: params => request({
    method: 'GET',
    url: '/frontend/user/schedule/influencer/show',
    params
  }),
  // 红人产品合作添加接口
  addCooperate: data => request({
    method: 'POST',
    url: '/frontend/influencer/product/add',
    data
  }),
}